import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 因为封装了axios 引入在封装里面 这里就不需要全局引入axios
// 封装好的axios 为httpApis 直接引入这个
import httpApis from "./http/index";
Vue.prototype.$http = httpApis;
//引入axios和axios插件(不用写this 又提示)
// import axios from "axios";
// import VueAxios from "vue-axios";
// Vue.use(VueAxios, axios);
// Vue.prototype.axios = axios;
//基础路径
// axios.defaults.baseURL = "http://localhost:3000/";

//引入ElementUI 三步骤
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
